package com.msmall.base.pager;


public class PropertyFilter {
	
	private String name;
	
	private Object value;
	
	private MatchType matchType = MatchType.EQ;

	public PropertyFilter() {
	}
	
	/**
	 * @param filterName 属性名称
	 * @param value 值
	 * @param matchType 比较
	 */
	public PropertyFilter(final String name, final String matchType, final Object value) {
		try{
			this.matchType = Enum.valueOf(MatchType.class, matchType);
			this.name = name;
			this.value = value;
		}catch(Exception e){
			
		}
	}
	
	public PropertyFilter(final String name, final MatchType matchType, final Object value) {
		try{
			this.matchType = matchType;
			this.name = name;
			this.value = value;
		}catch(Exception e){
			
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public MatchType getMatchType() {
		return matchType;
	}

	public void setMatchType(MatchType matchType) {
		this.matchType = matchType;
	}
}
